package com.uni.exp5.service;

import com.uni.exp5.dao.UserDao;
import com.uni.exp5.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("UserService")
public class UserServiceImpl implements UserService{
//    @Autowired
    @Resource(name = "UserDao")
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    @Override
    public void addUser(User user) {
        userDao.add(user);
    }
}
